class Service:
    def service(self, request, response):
        if request.getType() == "GET":
            self.doGet(request, response)
        if request.getType() == "POST":
            self.doPost(request, response)

    def doGet(self, request, response):
        pass

    def doPost(self, request, response):
        pass
